(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/item/itempersonnel" ], {
    "34ab": function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("ba7d")).default);
        }).call(this, n("543d").createPage);
    },
    "68e7": function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var i = n("b00d"), a = {
                data: function() {
                    return {
                        graceFullLoading: !0,
                        personnel: {},
                        perid: 0,
                        attach: "",
                        lng: 0,
                        lat: 0,
                        workitems: [],
                        itemLength: 0,
                        teckname: "技师",
                        bgColor: "",
                        textColor: "",
                        showBack: !1,
                        logo: "",
                        grade: [],
                        zmjz: 2,
                        experience: [],
                        family: [],
                        gender: [ "未知", "男", "女" ],
                        education: [ "未知", "小学", "初中", "高中", "专科", "本科", "硕士", "博士" ],
                        marriage: [ "未知", "未婚", "已婚" ],
                        zodiac: [ "未知", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪" ],
                        gradeShowImgs: [],
                        isCollect: 0,
                        tag1: "",
                        tag2: "",
                        tag3: "",
                        casename: ""
                    };
                },
                onLoad: function(e) {
                    var t = i.d;
                    "wx5a67ffb91ef175cb" == t || "wxcaad2fca5f5aeba1" == t ? (this.tag1 = "官方认证", this.tag2 = "收费透明", 
                    this.tag3 = "爽约包退") : (this.tag1 = "实名认证", this.tag2 = "资料审核", this.tag3 = "已培训");
                    var n = getCurrentPages();
                    if (this.showBack = n.length > 1, this.$systemInfo.info(), e.scene) {
                        var a = decodeURIComponent(e.scene).split("&")[0].split("=");
                        "perid" == a[0] && a[1] > 0 && (this.perid = a[1]);
                    } else this.perid = e.perid;
                    this.uploadLBS();
                },
                methods: {
                    editCollect: function() {
                        var t = this, n = 1 == this.isCollect ? 0 : 1, i = this.$xSign.sign("v4index_more");
                        e.showNavigationBarLoading(), this.$xRequest.request({
                            url: "entry/wxapp/v4index_more",
                            data: {
                                collect: n,
                                op: "collect",
                                perid: this.perid,
                                xgsign: i
                            },
                            success: function(n) {
                                var i = JSON.parse(t.$Decrypt(n.data.data));
                                t.isCollect = i.collect, e.showToast({
                                    title: n.data.message,
                                    icon: "none"
                                });
                            },
                            fail: function(t) {
                                e.showToast({
                                    title: t.data.message,
                                    icon: "none"
                                });
                            }
                        });
                    },
                    showImgsPic: function(t, n) {
                        n = n > 0 ? n : 0, e.previewImage({
                            current: n,
                            urls: t
                        });
                    },
                    tograde: function() {
                        e.navigateTo({
                            url: "itemgrade?perid=" + this.perid
                        });
                    },
                    newImageGrade: function(e) {
                        this.grade[0].headimg = "../../static/empty/a2.jpg";
                    },
                    newImage: function(e) {
                        this.personnel.headimg = this.logo;
                    },
                    showDialog: function(t) {
                        var n = t.currentTarget.dataset.itemid;
                        e.navigateTo({
                            url: "../item/item?itemid=" + n + "&perid=" + this.perid + "&pername=" + this.personnel.name
                        });
                    },
                    showImgs: function(t) {
                        e.previewImage({
                            urls: t
                        });
                    },
                    uploadLBS: function() {
                        var t = this;
                        e.getSetting({
                            success: function(n) {
                                0 == n.authSetting["scope.userLocation"] ? e.openSetting({
                                    success: function(n) {
                                        1 == n.authSetting["scope.userLocation"] ? (console.log("重新地址授权"), t.getaddress()) : e.showModal({
                                            title: "提示",
                                            content: "请允许使用位置权限",
                                            success: function(e) {
                                                e.confirm ? t.uploadLBS() : e.cancel && console.log("用户点击取消");
                                            }
                                        });
                                    }
                                }) : t.getaddress();
                            }
                        });
                    },
                    getaddress: function() {
                        var t = this;
                        e.getLocation({
                            type: "gcj02",
                            success: function(e) {
                                t.lng = e.longitude, t.lat = e.latitude, t.getDetail();
                            }
                        });
                    },
                    getDetail: function() {
                        var t = this, n = this.$xSign.sign("v4personnelset");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4personnelset",
                            data: {
                                xgsign: n,
                                op: "detail",
                                perid: this.perid,
                                lng: this.lng,
                                lat: this.lat
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                if (t.teckname = n.teckname, t.bgColor = n.bgColor, t.textColor = n.textColor, t.zmjz = n.zmjz, 
                                t.isCollect = n.iscollect, t.experience = n.experience, t.family = n.family, t.attach = n.attach, 
                                t.logo = n.logo, t.personnel = n.personnel, t.grade = n.grades, t.casename = n.casename, 
                                n.personnel.photo) {
                                    var i = n.personnel.photo;
                                    "i" == i.substr(0, 1) ? t.personnel.photo = i : t.personnel.photo = "";
                                }
                                t.workitems = n.items, n.items.length > 0 ? t.itemLength = n.items.length - 1 : t.itemLength = 0, 
                                n.grades.length > 0 && n.grades[0].gradeimgs && (t.gradeShowImgs = n.grades[0].gradeimgs.split(",")), 
                                t.graceFullLoading = !1;
                            },
                            fail: function(t) {
                                return e.showToast({
                                    title: t.data.message,
                                    icon: "none",
                                    success: function() {
                                        setTimeout(function() {
                                            1 == this.showBack ? e.navigateBack({
                                                delta: 1
                                            }) : e.reLaunch({
                                                url: "../index/index"
                                            });
                                        }, 1200);
                                    }
                                }), !1;
                            }
                        });
                    }
                }
            };
            t.default = a;
        }).call(this, n("543d").default);
    },
    ba7d: function(e, t, n) {
        "use strict";
        n.r(t);
        var i = n("c10d"), a = n("eb96");
        for (var o in a) "default" !== o && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(o);
        n("ffd1");
        var s = n("f0c5"), r = Object(s.a)(a.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        t.default = r.exports;
    },
    c10d: function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return a;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {
            return i;
        });
        var i = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            },
            xmgStar: function() {
                return n.e("components/xmgStar/xmgStar").then(n.bind(null, "1027"));
            }
        }, a = function() {
            this.$createElement, this._self._c;
        }, o = [];
    },
    eb96: function(e, t, n) {
        "use strict";
        n.r(t);
        var i = n("68e7"), a = n.n(i);
        for (var o in i) "default" !== o && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(o);
        t.default = a.a;
    },
    f16a: function(e, t, n) {},
    ffd1: function(e, t, n) {
        "use strict";
        var i = n("f16a");
        n.n(i).a;
    }
}, [ [ "34ab", "common/runtime", "common/vendor" ] ] ]);